﻿using Microsoft.UI.Xaml.Data;

namespace WhaleAccount.Helpers;
public class DateTimeToStringConverter : IValueConverter
{
    public DateTimeToStringConverter()
    {

    }
    object IValueConverter.Convert(object value, Type targetType, object parameter, string language)
    {
        if (value == null)
        {
            return string.Empty;
        }
        var datetime = (DateTime)value;
        return datetime.ToString("MM-dd");
    }
    object IValueConverter.ConvertBack(object value, Type targetType, object parameter, string language) => throw new NotImplementedException();
}
